﻿
:: Before running this file, sign the assembly in Project properties
::
:: To customize this file, find and replace
:: a) "MyFeature" with your own feature names
:: b) "feature.xml" with the name of your feature.xml file
:: c) "workflow.xml" with the name of your workflow.xml file
:: d) "http://ws26:50006/" with the name of the site you wish to publish to

echo Copying the feature...

echo Copying the feature...

rd /s /q "%CommonProgramFiles%\Microsoft Shared\web server extensions\14\TEMPLATE\FEATURES\RecruitmentProcess_Feature1"
mkdir "%CommonProgramFiles%\Microsoft Shared\web server extensions\14\TEMPLATE\FEATURES\RecruitmentProcess_Feature1"



xcopy /s /Y RecruitmentProcess_Feature1\*.xml    "%CommonProgramFiles%\Microsoft Shared\web server extensions\14\TEMPLATE\FEATURES\RecruitmentProcess_Feature1\"


xcopy /s /Y RecruitmentProcess_Feature1\*.xsn    "%CommonProgramFiles%\Microsoft Shared\web server extensions\14\TEMPLATE\FEATURES\RecruitmentProcess_Feature1\"



pushd %programfiles%\common files\microsoft shared\web server extensions\14\bin

::Note: Uncomment these lines if you've modified your deployment xml files or IP forms 
stsadm -o deactivatefeature -filename RecruitmentProcess_Feature1\feature.xml -url http://devsp:7500
stsadm -o uninstallfeature -filename RecruitmentProcess_Feature1\feature.xml  -force

stsadm -o installfeature -filename RecruitmentProcess_Feature1\feature.xml -force
stsadm -o activatefeature -filename RecruitmentProcess_Feature1\feature.xml -url  http://devsp:7500


echo Doing an iisreset...
popd
iisreset
echo About to close...............

